package com.nowar.data.listener;

import com.nowar.data.entity.UserInfoEntity;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @Author: 谢无殇。
 * @Date : 2023-03-08 22:48
 */
@Component
public class TestListener {


    //注解的方式
    @EventListener
    public void handleEvent(UserInfoEntity userInfoEntity) throws Exception {
        System.out.println(userInfoEntity);
    }


}
